﻿namespace SharePhone.Core
{
    public class BaseFile : BaseItem
    {
        [CoreField(PopulateRule = CorePopulateRule.None)]
        public byte[] FileContent { get; set; }

        [CoreField(FieldName = "FileSizeDisplay", PopulateRule = CorePopulateRule.SharepointReadOnly,
            Importance = FieldImportance.Optional)]
        public string FileSize { get; internal set; }

        /// <summary>
        /// Gets/sets the filename of the item 
        /// </summary>
        [CoreField(FieldName = "FileLeafRef", PopulateRule = CorePopulateRule.Sharepoint,
            Importance = FieldImportance.Optional)]
        public new string FileName { get; set; }
    }
}